https://discord.gg/botpress logo
Discord Integration v1.2.1 — OAuth Wizard Shows Ra...
# 🤝help
i
Botpress Discord integration v1.2.1 — OAuth wizard displaying raw HTML Hi Botpress team! I need help connecting my AI agent to Discord. Agent: DYO — The Awareness Guide Integration: Official Discord by Botpress, v1.2.1 Workspace: Free plan What's working: - My Botpress agent is published and works in the Emulator. - The Discord integration is installed and enabled. - I created the Discord application and bot. - I enabled Server Members Intent and Message Content Intent. - I invited the bot to my Discord server and configured its channel permissions. What's broken: When I click Connect with OAuth in Botpress, it opens: "https://webhook.botpress.cloud/oauth/wizard/start" Instead of displaying the setup form, the browser displays the raw HTML source code. I tried Chrome and Safari on macOS. Both show the same problem. The integration still says "You are not connected to Discord." I cannot reach the Bot Token configuration field to finish connecting my bot. Can someone from the Botpress team help me with either: 1. Fixing the OAuth wizard so the setup page renders normally, or 2. Accessing a supported manual Bot Token configuration method? I have screenshots of the problem and can provide a report ID if needed. Thank you!
I also checked your official Discord integration documentation: https://botpress.com/docs/integrations/integration-guides/discord/ It says there should be a Bot Token field in the Configuration menu, but my integration only displays "Connect with OAuth." The OAuth wizard opens as raw HTML in both Chrome and Safari. Is there a way to enable the documented manual Bot Token configuration or bypass the broken wizard? I've already completed all the Discord-side setup steps.
a
This looks more like an OAuth wizard rendering or response-handling issue on Botpress’s side than a problem with your Discord setup. I’d first check whether the wizard endpoint is returning the correct content type and whether the OAuth flow is being served properly. I’d also compare the integration’s configuration options with the documented manual setup before attempting any workaround. One question: when the wizard opens, are you seeing the HTML source as plain text, or is the page partially rendered with the HTML displayed? I can help you troubleshoot this further and explore a supported way to complete the connection. We can discuss it privately if you’re open to that. @important-lunch-30272
i
Hey! Thanks for responding and offering to help. I'm seeing the entire HTML source displayed as plain text, starting with "" and showing the HTML tags. The page is not partially rendered. There are no working buttons or form fields. This happens in both Google Chrome and Safari on macOS. The issue starts when I click Connect with OAuth in the official Botpress Discord integration v1.2.1. My Discord application, bot, gateway intents, and server permissions are already configured. The bot is successfully added to my Discord server. Could you help me determine whether the OAuth endpoint is returning the wrong Content-Type header, or whether there's a supported way to access the manual Bot Token configuration? I can share redacted screenshots or browser response-header details if that would help. I appreciate your help!
a
Thanks for clarifying. That helps narrow things down. Could you share a screenshot of the raw HTML page and, if possible, the browser's response headers from the OAuth request? I'd like to inspect what's being returned and help you identify whether it's a content-type issue or a problem with the OAuth flow. We can also look into the supported manual Bot Token configuration. I can help you work through this directly. @important-lunch-30272
i
Hey! Thanks again for helping me troubleshoot this. Here's exactly what happened: I created an AI agent called DYO — The Awareness Guide using Botpress Studio. The agent is published, trained with my knowledge bases, and works correctly in the Botpress Emulator. I installed the official Discord integration v1.2.1. I also created my Discord application, configured the bot, enabled the required Gateway Intents, and successfully added it to my Discord server. However, when I return to Botpress and click Connect with OAuth, a new browser window opens at: "https://webhook.botpress.cloud/oauth/wizard/start" Instead of loading a normal setup page, the browser displays the entire raw HTML document as plain text, beginning with "". I can see the HTML tags, page instructions, and a link labeled "Next step," but none of them are rendered as interactive elements. I tested this in both Google Chrome and Safari on macOS, and the exact same issue occurs. I also tried opening the next wizard step directly, but I still couldn't complete the connection. The Discord integration continues to display "You are not connected to Discord." The official Botpress documentation describes manually entering a Discord Bot Token and saving the configuration, but my interface only offers "Connect with OAuth." I cannot find a manual token field. Could you help me find a supported way to configure the Bot Token manually, or determine why the OAuth wizard is being served as plain text? I haven't confirmed the HTTP response headers yet, but I can check them if necessary. I'd appreciate any guidance that doesn't require rebuilding the bot or reinstalling everything. Thank you!
a
Thanks for the detailed breakdown. From what you've described, the issue appears to be with how Botpress is serving the OAuth wizard, rather than your Discord bot configuration. Before attempting any workaround, I'd like to check the response headers, particularly the Content-Type, to confirm whether the endpoint is returning HTML as plain text. Could you also share a screenshot of your integration's Configuration tab? I can help you investigate this directly and identify the safest supported way to complete the connection without rebuilding your agent. We can also discuss it privately if that's easier. @important-lunch-30272
i
Hey! I checked the Chrome Developer Tools Network tab, and I found the issue! Here are the actual response headers from the Botpress OAuth wizard: Request: GET "/oauth/wizard/start" Status: "200 OK" Content-Type: "text/plain; charset=utf-8" The response also includes: Content-Security-Policy: "sandbox; default-src 'none'; frame-ancestors 'none'" This confirms the server is returning HTML content with a plain-text Content-Type, explaining why Chrome and Safari show the raw HTML instead of rendering the setup wizard. My Discord integration v1.2.1 still only shows Connect with OAuth, with no manual Bot Token configuration field. Could this be escalated to the Botpress integration team to correct the response headers or provide an official alternative connection method? I appreciate your help!
a
Great find! This confirms the OAuth endpoint is returning HTML as plain text, which is why the wizard isn't rendering. This needs to be looked into by the Botpress team. I'd suggest escalating it with these response headers so they can investigate and confirm a supported manual token alternative. I can help you put together the technical report. @important-lunch-30272
i
Thank you so much for helping me troubleshoot this! I appreciate your time and guidance. I'm going to submit an official problem report to Botpress with the response headers and everything we've discovered. Hopefully their integration team can get the OAuth wizard working. Thanks again! 🌹
7 Views